@charset "utf-8";
@import "config";

@mixin over{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@mixin f_b{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@mixin f_a{
    display: flex;
    justify-content: space-around;
    align-items: center;
}
@function w($wpx){
    @return $wpx/640*100%;
}
$col: #d62d31;
$ts: 0.2s;
.show{
    display: block!important;
}
.show_i{
    display: inline-block!important;
}

.container{
    overflow: hidden;
    .web_head{
        overflow: hidden;
        .title{
            font-size: 1rem;
        }
        .right{
            span{
                display: none;
                font-size: 0.9rem;
                padding: 0 0.5rem;
            }
        }
        a:hover,a:active,span:hover,span:active{
            @include highLight;
        }
    }
    .web_sec{
        .title{
            width: 100%;
            height: setLengthByHeight(80px);
            border-bottom: 1px solid #e0e0e0;
            text-align: center;
            background-color: #fff;
            overflow: hidden;
            &>a{
                display: inline-block;
                width: 49%;
                font-size: 0.8rem;
                color: #333;
                transition: $ts;
                span{
                    display: inline-block;
                    height: setLengthByHeight(80px);
                    line-height: setLengthByHeight(80px);
                    padding: 0 5px;
                    @include over;
                    transition: $ts;
                }
                &.active{
                    color: $col;
                    span{
                        border-bottom: 4px solid $col;
                    }
                }
            }
        }
        .goods{
            &>li{
                position: relative;
                padding: 0 w(20);
                transition: $ts;
                &:not(:last-child){
                    border-bottom: 1px solid #e0e0e0;
                }
                &:hover,&:active{
                    background: #fafafa;
                }
                &>a{
                    display: block;
                    width: 100%;
                    height: 120px;
                    padding: 10px 0 10px 110px;
                    transition: $ts;
                    position: relative;
                    .ckd{
                        display: none;
                        position: absolute;
                        top: 10px;
                        left: 0;
                        font-size: 1rem;
                        line-height: 100px;
                        color: #333;
                        transition: $ts;
                        &.icon-gou{
                            color: $col;
                        }
                    }
                    figure{
                        width: 100px;
                        height: 100px;
                        position: absolute;
                        top: 10px;
                        left: 0;
                        transition: $ts;
                        img{
                            width: 100%;
                            height: 100%;
                        }
                    }
                    &>p{
                        height: 40px;
                        line-height: 20px;
                        font-size: 0.7rem;
                        color: #333;
                        overflow: hidden;
                        word-break: break-all;
                        text-align: justify;
                    }
                    .in_pr{
                        font-size: 0.5rem;
                        color: #999;
                        line-height: 40px;
                        @include over;
                        p{
                            display: inline;
                            margin-right: 3%;
                            @include over;
                        }
                        i{
                            font-size: 0.5rem;
                        }
                    }
                    .price{
                        line-height: 18px;
                        font-size: 0.5rem;
                        color: #999;
                        @include over;
                        i,span{
                            color: $col;
                            font-size: 0.7rem;
                        }
                    }
                    &.pd_l{
                        padding-left: 135px;
                        figure{
                            left: 25px;
                        }
                    }
                }
                .more{
                    color: $col;
                    font-size: 1.2rem;
                    position: absolute;
                    right: w(20);
                    bottom: 10px;
                }
                .more_menu{
                    display: none;
                    width: w(600);
                    font-size: 0.6rem;
                    color: #fff;
                    text-align: center;
                    background: rgba(0,0,0,0.8);
                    border-radius: 5px;
                    box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
                    padding: 0.5rem 0;
                    position: absolute;
                    right: w(10);
                    bottom: 2.6rem;
                    z-index: 3;
                    li{
                        a{
                            display: block;
                            color: #fff;
                        }
                        float: left;
                        width: 20%;
                        i{
                            font-size: 1.3rem;
                        }
                    }
                    &>i{
                        width: 0;
                        height: 0;
                        border-top: 0.4rem solid rgba(0,0,0,0.6);
                        border-left: 0.4rem solid transparent;
                        border-right: 0.4rem solid transparent;
                        text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
                        position: absolute;
                        right: w(15);
                        bottom: -0.35rem;
                        &::before{
                            visibility: hidden;
                        }
                    }
                }
                .shade{
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    z-index: 2;
                }
            }
        }
    }
    .web_foot{
        overflow: hidden;
        .before{
            padding: 0 w(40);
            @include f_b;
            display: none;
            a,input{
                width: 47%;
                height: 1.7rem;
                line-height: 1.65rem;
                &:hover,&:active{
                    @include highLight;
                }
            }
            input{
                color: #666;
            }
        }
        .after{
            padding: 0 w(20);
            @include f_b;
            display: none;
            .choice{
                width: w(120);
                height: 100%;
                color: #333;
                font-size: 0.8rem;
                i{
                    display: inline-block;
                    vertical-align: -0.1rem;
                    width: 40%;
                    &.icon-gou{
                        color: $col;
                        font-size: 1rem;
                    }
                }
            }
            input{
                width: 24%;
                font-size: 0.7rem;
            }
            .top,.down{
                color: #666;
            }
        }
        &>div.show_f{
            width: 100%;
            height: 100%;
            display: flex;
        }
    }
    .layer{
        .dialog {
            .icon_list {
                .item {
                    .icon-weixin { background-color: #85d16d; }
                    .icon-pengyouquan { background-color: #6dd193; }
                    .icon-weibo { background-color: #f26868; }
                    .icon-QQ { background-color: #4c88f5; }
                    .icon-qqkongjian { background-color: #f0c759; }
                    .icon-shouji { background-color: #54d3b1; }
                    .icon-liuyan1 { background-color: #ff936d; }
                    .icon-erweima {
                        color: #000000;
                        border: setLengthByHeight(4px) solid #dde0de;
                        background-color: #ffffff;
                    }
                    .icon-fuzhilianjie { background-color: #a8bcc8; }
                    .icon-shichang { background-color: #82cf4f; }
                }
            }
        }
    }
    .shade_all{
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
    }
}